import request from "@/apis/request";

export const findTypeSets = async (typeCode, typeName, maintenanceType, currentPage, pageSize) => {
    return await request.get('/api/typeSettings/find', {
        params: {
            typeCode: typeCode,
            typeName:typeName,
            maintenanceType: maintenanceType,
            currentPage: currentPage,
            pageSize: pageSize
        }
    })
}
export const findTypeSetById = async (id) => {
    return await request.get('/api/typeSettings/findById', {params: {id: id}})
}
export const addTypeSet = async (form) => {
    return await request.post('/api/typeSettings/insert', form)
}
export const updateTypeSet = async (form) => {
    console.log(form)
    return await request.put('/api/typeSettings/update', form)
}
export const deleteTypeSet = async (id) => {
    return await request.delete('/api/typeSettings/delete', {data: id})
}